package com.gxpt.app.adapter;

import android.content.Context;
import android.widget.ImageView;
import android.widget.TextView;

import com.gxpt.app.AppUtils;
import com.gxpt.app.Constant;
import com.gxpt.app.R;
import com.gxpt.app.base.ListBaseAdapter;
import com.gxpt.app.base.SuperViewHolder;
import com.gxpt.app.bean.mycoupon_bean;
import com.gxpt.app.bean.mypub_bean;
import com.gxpt.app.bean.newlist_bean;
import com.utils.ScreenUtils;
import com.utils.picasso.PicassoUtils;

/**
 * Created by Lzx on 2016/12/30.
 */

public class mycoupon_Adapter extends ListBaseAdapter<mycoupon_bean.mycoupon> {

    //列表图片
    int pic_view_width = 0;
    int pic_view_hight = 0;
    Context context;
    public mycoupon_Adapter(Context context) {
        super(context);
        this.context = context;

    }

    @Override
    public int getLayoutId() {
        return R.layout.item_mycoupon_list;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        mycoupon_bean.mycoupon item = mDataList.get(position);

        TextView txt_title = holder.getView(R.id.txt_title);
        txt_title.setText(item.title);

        TextView txt_deduction = holder.getView(R.id.txt_deduction);
        txt_deduction.setText(item.deduction);

        TextView txt_use_time = holder.getView(R.id.txt_use_time);
        txt_use_time.setText(item.use_time);

    }
}
